package com.cds.alert.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cds.alert.dao.AlertLogBbsMapper;
import com.cds.alert.ibatis.Criteria;
import com.cds.alert.pojo.AlertLogBbs;
import com.cds.alert.service.AlertLogBbsService;

@Service("alertLogBbsService")
public class AlertLogBbsServiceImpl implements AlertLogBbsService {

	@Autowired
	private AlertLogBbsMapper alertLogBbsMapper;
	
	public void insert(AlertLogBbs entity) {
		alertLogBbsMapper.insert(entity);
	}

	@Transactional(readOnly = true)
	public List<AlertLogBbs> queryByExample(Criteria example) {
		return alertLogBbsMapper.queryByExample(example);
	}

}
